package com.zkingsoft.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zkingsoft.dao.StatementDao;
import com.zkingsoft.model.Statement;
import com.zkingsoft.plugin.pojo.PaginationVO;
import com.zkingsoft.services.StatementService;

@Service("StatementService")
public class StatementServiceImpl implements StatementService{

	@Autowired
	StatementDao statementDao;
	
	@Override
	public List<Statement> findInPage(Statement statement,PaginationVO pageVo) {
		
		return statementDao.selectInPage(statement,pageVo);
	}
	

	@Override
	public int findTotal(Statement statement) {
		return statementDao.selectTotalRecord(statement);
	}


	@Override
	public List<Statement> findByModel(Statement statement) {
		return statementDao.selectAll(statement);
	}
	
}
